// pages/chooseGarage/chooseGarage.js
const garageData = require('../garage/garageData')
const util = require('../../utils/util')
var app = getApp();

Page({
  data: {
    markers: [],
    value: '',
    checked:true
  },

  onLoad: function () {
    this.addMarkers()
  },
  addMarkers() {
    this.setData({
      markers: app.globalData.sortMarkers
    })
  },
  handleRadioChange(e) {
    console.log(e);
    const { value } = e.detail;
    let {checked}=this.data;
    if(value) checked=false;
    this.setData({checked,value})
  },
  goNext() {
    let { value } = this.data;
    wx.reLaunch({
      url: '/pages/index/index?value=' + value,
    });
  },
})